package com.flame.core.mybatis;

import java.util.ArrayList;
import java.util.Collection;

/**
 *
 *
 * @author wuxintong
 * @since 2022/9/11
 */
public class PageList<T> extends ArrayList<T> {

    private int pageNum;

    private int pageSize;

    private int pages;

    private long total;

    public PageList() {
    }

    public PageList(Collection<? extends T> list, int pageNum, int pageSize, int pages, long total) {
        super(list);
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.pages = pages;
        this.total = total;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}

